package cn.net.zidian.mvvm.activity;

import android.view.LayoutInflater;

import com.blankj.utilcode.util.ActivityUtils;

import cn.net.zidian.databinding.ActivityMainBinding;
import cn.net.zidian.mvvm.vm.BaseViewModel;

/**
 * 主页
 */
public class MainActivity extends BaseActivity {

    private ActivityMainBinding viewBinding;

    @Override
    protected BaseViewModel viewModel() {
        return null;
    }

    @Override
    protected void initView() {
        viewBinding = ActivityMainBinding.inflate(LayoutInflater.from(this));
        setContentView(viewBinding.getRoot());

        viewBinding.tvShouji.setOnClickListener(v -> {
            ActivityUtils.startActivity(ShoujiActivity.class);
        });

        viewBinding.tvIp.setOnClickListener(v -> {
            ActivityUtils.startActivity(IPActivity.class);
        });

        viewBinding.tvIdCard.setOnClickListener(v -> {
            ActivityUtils.startActivity(IdCardActivity.class);
        });

        viewBinding.tvXingzuo.setOnClickListener(v -> {
            ActivityUtils.startActivity(AstroActivity.class);
        });

        viewBinding.tvToday.setOnClickListener(v -> {
            ActivityUtils.startActivity(TodayActivity.class);
        });

        viewBinding.tvZidian.setOnClickListener(v -> {
            ActivityUtils.startActivity(CiDianActivity.class);
        });


    }

}
